package darPresente;

import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

public class DarPresente {
	
	Socket socket;
	String host = "192.168.2.103";
	int port = 5602;
	
	public DarPresente() throws UnknownHostException, IOException {
	
		socket = new Socket(host,port);
		DataOutputStream dos = new DataOutputStream(socket.getOutputStream());
		
		dos.writeUTF("121648 presente\n117708 presente\n117709 presente\n109514 presente\n");
		dos.close();
		
		DataInputStream dis = new DataInputStream(socket.getInputStream());
		dis.readUTF();
		
		dis.close();
		
		socket.close();
	}
	
	public static void main(String[] args) throws UnknownHostException, IOException {
		new DarPresente();
	}
}
